package com.ice.govern.gateway;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.netflix.zuul.EnableZuulProxy;

/**
 * @author Administrator
 * @version 1.0
 * @create 2018-07-17 12:03
 **/
// 因为这里我们加入了myBatis的依赖，但是没有加入myBatis的配置文件，所以要去掉自动配置
// 不然会报 Failed to auto-configure a DataSource 错误
@SpringBootApplication(exclude= {DataSourceAutoConfiguration.class})
@EnableZuulProxy//此工程是一个zuul网关
public class GatewayApplication {
    public static void main(String[] args) {
        SpringApplication.run(GatewayApplication.class, args);
        System.out.println("网关服务启动成功 ^v^");
    }
}
